<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>编辑信息</title>
    <link rel="stylesheet" href="../css/page-health-orderInfo.css"/>
    <link rel="stylesheet" href="../plugins/elementui/index.css"/>
    <script src="../plugins/jquery/dist/jquery.min.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script src="../plugins/datapicker/datePicker.js"></script>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/elementui/index.js"></script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="card">
            <div class="">
                <img v-if="setmeal.img" :src="'http://health.zlf520.cn/'+setmeal.img" width="100%"
                     height="100%"/>
            </div>
            <div class="project-text">
                <h4 class="tit">{{setmeal.name}}</h4>
                <p class="subtit">{{setmeal.remark}}</p>
                <p class="keywords">
                    <span>{{setmeal.sex == '0' ? '性别不限' : setmeal.sex == '1' ? '男':'女'}}</span>
                    <span>{{setmeal.age}}</span>
                </p>
            </div>
        </div>
        <div class="form-info">
            <form class="info-form">
                <div class="input-row">
                    <span>预约人:{{setmeal.names}}</span>
                </div>
                <div class="input-row">
                    <span>预约方式:{{setmeal.orderType}}</span>
                </div>
                <div class="input-row">
                    <span>预约时间:{{setmeal.orderDate}}</span>
                </div>
                <div class="input-row">
                    <span>到诊情况:{{setmeal.orderStatus}}</span>
                </div>
                <div class="input-row">
                    <span>预约分公司地址 : 江苏省南京市传智体检中心</span>
                </div>

            </form>
        </div>
    </div>
</div>
<script>
    var vue = new Vue({
        el: '#app',
        data: {
            setmeal: {},//套餐信息
            orderInfo: {//预约信息
                setmealId: null,
                sex: '1'
            }
        },
        created(){
            this.findByPage();
        },
        methods: {
            findByPage(){
                //拿到url上面的id
                var url = window.location.search;
                var id = url.substring(url.lastIndexOf('=')+1, url.length);

                axios.get("/member/getAll.do?id="+id).then((res)=>{
                    if(res.data.flag){
                        this.setmeal = res.data.data;
                    }else {
                        this.$message.error(res.data.message);
                    }
                });

            }
        }
    });
</script>
</body>
</html>